package com.ruoyi.project.system.domain.dto;

import com.ruoyi.project.system.domain.SiyuQuery;
import com.ruoyi.project.system.domain.vo.BeiDiaoVo;
import lombok.Data;
import static com.ruoyi.common.utils.uuid.Seq.getId;


@Data
public class FacialVerification {

    String queryId;

    String orderNo;

    private String name;

    private String cardNo;

    public FacialVerification(SiyuQuery siyuQuery) {
        this.queryId = siyuQuery.getQueryId().toString();
        this.orderNo = "TQFK" + getId();
        this.name = siyuQuery.getName();
        this.cardNo = siyuQuery.getCardNo();
    }

    public FacialVerification(BeiDiaoDto beiDiaoDto) {
        this.queryId = "JJBRYZ::"+beiDiaoDto.getId();
        this.orderNo = beiDiaoDto.getOrderNo();
        this.name = beiDiaoDto.getName();
        this.cardNo = beiDiaoDto.getIdNumber();
    }

    public FacialVerification(BeiDiaoVo beiDiaoVo) {
        this.queryId = "FKBRYZ::"+beiDiaoVo.getId();
        this.orderNo = beiDiaoVo.getOrderNo();
        this.name = beiDiaoVo.getName();
        this.cardNo = beiDiaoVo.getIdNumber();
    }
}
